package com.boarsoft.flow.core.bean;

import java.util.Set;

public class ForkNode extends WrappedNode {
	/** 可选项，没分支表示跳过这个步骤 */
	protected Set<String> branches;
	/** 可选项，一般来说，当有handler时，branches只有一项 */
	protected ForkHandler handler;
	/** 必需项 */
	protected long timeout = 6000L;
	/** 必需项 */
	protected String join;

	public int getType() {
		return BaseNode.TYPE_FORK;
	}

	public String getJoin() {
		return join;
	}

	public void setJoin(String join) {
		this.join = join;
	}

	public long getTimeout() {
		return timeout;
	}

	public void setTimeout(long timeout) {
		this.timeout = timeout;
	}

	public Set<String> getBranches() {
		return branches;
	}

	public ForkHandler getHandler() {
		return handler;
	}

	public void setHandler(ForkHandler handler) {
		this.handler = handler;
	}

	public void setBranches(Set<String> branches) {
		this.branches = branches;
	}
}
